
func void b_enter_demonstower_kapitel_1()
{
};


var int enterdemonstower_kapitel2;

func void b_enter_demonstower_kapitel_2()
{
	if(ENTERDEMONSTOWER_KAPITEL2 == FALSE)
	{
		ENTERDEMONSTOWER_KAPITEL2 = TRUE;
	};
};


var int enterdemonstower_kapitel3;

func void b_enter_demonstower_kapitel_3()
{
	if(ENTERDEMONSTOWER_KAPITEL3 == FALSE)
	{
		ENTERDEMONSTOWER_KAPITEL3 = TRUE;
	};
};


var int enterdemonstower_kapitel4;

func void b_enter_demonstower_kapitel_4()
{
	if(ENTERDEMONSTOWER_KAPITEL4 == FALSE)
	{
		ENTERDEMONSTOWER_KAPITEL4 = TRUE;
	};
};


var int enterdemonstower_kapitel5;

func void b_enter_demonstower_kapitel_5()
{
	if(ENTERDEMONSTOWER_KAPITEL5 == FALSE)
	{
		if(Npc_IsDead(shemron_demon))
		{
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_01");
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_02");
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_03");
			Wld_InsertNpc(Zombie01,"FP_ROAM_MT_04");
			Wld_InsertNpc(Zombie02,"FP_ROAM_MT_05");
			Wld_InsertNpc(Zombie03,"FP_ROAM_MT_06");
			Wld_InsertNpc(Zombie04,"FP_ROAM_MT_07");
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_08");
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_09");
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_10");
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_11");
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_12");
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_13");
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_14");
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_15");
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_16");
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_17");
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_18");
			Wld_InsertNpc(Zombie01,"FP_ROAM_MT_19");
			Wld_InsertNpc(Zombie02,"FP_ROAM_MT_20");
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_21");
			Wld_InsertNpc(SkeletonMage,"FP_ROAM_MT_22");
			Wld_InsertNpc(Zombie03,"FP_ROAM_MT_23");
			Wld_InsertNpc(Zombie04,"FP_ROAM_MT_24");
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_25");
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_26");
			Wld_InsertNpc(Zombie01,"FP_ROAM_MT_27");
			Wld_InsertNpc(Zombie02,"FP_ROAM_MT_28");
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_29");
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_30");
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_31");
			Wld_InsertNpc(Zombie04,"FP_ROAM_MT_32");
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_33");
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_34");
			Wld_InsertNpc(Skeleton,"FP_ROAM_MT_CHECKPOINT");
		};
		ENTERDEMONSTOWER_KAPITEL5 = TRUE;
	};
};


var int enterdemonstower_kapitel6;

func void b_enter_demonstower_kapitel_6()
{
	if(ENTERFREEMINE_KAPITEL6 == FALSE)
	{
		ENTERDEMONSTOWER_KAPITEL6 = TRUE;
	};
};

func void b_enter_demonstower()
{
	B_InitNpcGlobals();
	if(Kapitel >= 1)
	{
		b_enter_demonstower_kapitel_1();
	};
	if(Kapitel >= 2)
	{
		b_enter_demonstower_kapitel_2();
	};
	if(Kapitel >= 3)
	{
		b_enter_demonstower_kapitel_3();
	};
	if(Kapitel >= 4)
	{
		b_enter_demonstower_kapitel_4();
	};
	if(Kapitel >= 5)
	{
		b_enter_demonstower_kapitel_5();
	};
	if(Kapitel >= 6)
	{
		b_enter_demonstower_kapitel_6();
	};
	CurrentLevel = DEMONSTOWER_ZEN;
	B_InitNpcGlobals();
};

